Repository navigation
Reject a zero lower fpr_range bound in LogAUC - #3662
Open
chenyangsu wants to merge 3 commits into
Open
chenyangsu wants to merge 3 commits into
chenyangsu wants to merge 3 commits into
Conversation
chenyangsu
requested review from
SkafteNicki,
ethanwharris and
tchaton
as code owners
November 26, 2026 20:51
chenyangsu
force-pushed
the
fix/logauc-zero-fpr-lower-bound
branch
from
November 26, 2026 20:51
8336831 to
a29f223
Compare
atishay-kasliwal
left a comment
There was a problem hiding this comment.
binary_logauc, multiclass_logauc and multilabel_logauc with an fpr_range starting at 0 now raise the ValueError; master returned nan. The default (0.001, 0.1) gives the same 0.6667 as master for all three.
…pr-lower-bound # Conflicts: # CHANGELOG.md
Author
|
Merged |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
_validate_fpr_rangeaccepts a lower bound of 0, but LogAUC takeslog10of the FPR, sobinary_logauc(preds, target, fpr_range=(0.0, 0.1))returnstensor(nan)with no warning. For multiclass and multilabel every class isnan, so the macro average isnantoo.The lower bound must now be greater than 0, and
multilabel_logaucchecksfpr_rangelike the binary and multiclass functions, which it skipped before.Testing: the new
test_logauc_rejects_zero_fpr_lower_boundfails on master for all three tasks and passes with the change;test_logauc.py: 260 passed, 24 skipped, 4 xfailed.Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Yes.